package com.zymail.controller;

import java.util.ArrayList;
import java.util.List;
import com.zymail.bean.ZyClass;
import com.zymail.service.ZyClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/class")
public class ClassController extends BaseController{
    @Autowired
    private ZyClassService classService;

    /**
     * 得到所有订单的排序好之后的列表
     * @return
     */
    @GetMapping("/get")
    public List<ZyClass> getAllClass(){
        return classService.getSortedClass();
    }
}
